package com.aoyy.dao;

import org.springframework.stereotype.Repository;
import com.aoyy.model.Board;
import com.aoyy.util.Page;
/**================================================================================
 * Forum DAO <code>ForumDao</code> is to display all boards.
 * @see com.aoyy.service.ForumService
 * @author this author
 * @date 2017-08-14
 * ================================================================================ */
@Repository
public class ForumDao extends BaseDao<Board> {
	// Query boards by page
	public Page pagedQuery(int pageNo, int pageSize) {
		String hql = "from Board";
		return this.pagedQuery(hql, pageNo, pageSize);
	}
	
}
